<?php
session_cache_expire(999999999);
if(!isset($_SESSION)) 
	{ 
		session_start(); 
	}

if(isset($_SESSION['lang']))
			$lang = $_SESSION['lang'];	
if (empty($lang) || $lang == "EN") {
	$value = "../value/value_en.php";
} else if($lang == "VN") {
	$value = "../value/value_vn.php";
}
else {
	$value = "../value/value_kr.php";
}
include($value);
include '../operations/connection.php';


$companys= array();
$result = mysql_query("SELECT c.* FROM contract_company c WHERE c.isDelete=0;");
while ($r = mysql_fetch_array($result)) {
    $companys[] = array($r['id'], $r['name']);
}

?>
<table style="width:100%; padding: 10px 0 0 10px;">
							
							<tr>
								<td class="tdfirst" style="width: 90px"><?php echo $l_nameCompany_contract;?></td>
								<td style="width: 100px">
											<input type="text" size="30" name="addnameCompany" id="addnameCompany" value="" style="width: 185px;height: 24px; border: 1px solid #c4c0c9;font-size: 12px;line-height: 24px;" autocomplete="off" />
								</td>
								<td><img onclick="addnameCompany()" src="images/plus.png" style="width:20px;height:20px;cursor:pointer;" title="<?=$l_add?>"></td>
							</tr>
					</table>
<table style="width:100%; padding: 10px 0 0 10px;">
							
							<tr>
								<td class="tdfirst" style="width: 90px"><?php echo $l_nameCompany_contract;?></td>
								<td style="width: 100px">
								<div id="listaddidcompany">
										<select id="addidcompany" style="height: 24px;">
										<?php foreach ($companys as $value => $giatri) {?>
											<option value="<?=$giatri[0]?>"><?=$giatri[1]?></option>
										<?php } ?>
										</select>
								</div>
								</td>
							</tr>
					</table>
<?php mysql_close($connection);?>